
export default class TranslationalLimitMotor {
    constructor() {
        this.lowerLimit = 1;
        this.upperLimit = 0;
        this.motorForce = 0;
    }
    setLimits(lower,upper) {
        this.lowerLimit = lower;
        this.upperLimit = upper;
        return this;
    }
    setMotor(speed,force) {
        this.motorSpeed = speed;
        this.motorForce = force;
        return this;
    }
    clone() {
        let lm = new TranslationalLimitMotor();
        lm.lowerLimit = this.lowerLimit;
        lm.upperLimit = this.upperLimit;
        lm.motorSpeed = this.motorSpeed;
        lm.motorForce = this.motorForce;
        return lm;
    }
}